package RW;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class True {
	public static void main(String[] args) throws ParseException { 
		 StringBuffer names =new StringBuffer(); 
		 names.append("Jim").append(",Bob").append(",Lucy");
		 for (int i = 0; i < 20; i++) {
			names.append(i);
		} 
		 System.out.println(names);
		 
	
	//String str2="123";
	//boolean str3=false;
	System.out.println(Math.sqrt(4));
	
	Calendar c=Calendar.getInstance();
	Date nowDate=c.getTime();
	System.out.println("当前时间"+nowDate);
	int month=c.get(Calendar.MONTH);
	System.out.println("当月为"+month);
	
	
	Date n=new Date();
	SimpleDateFormat s=new SimpleDateFormat("yyyy-MM-dd HH点 a");
	String ns=s.format(n);
	System.out.println(ns);
	
	SimpleDateFormat s1=new SimpleDateFormat("yyyy-MM-dd HH");
	String ns1="2020-04-01 17点";
	Date date=s1.parse(ns1);
	System.out.println(date);
	
	double x,y;x=2;y=x*3/2;
	System.out.println(y);
	}
}
